const express = require("express");
const app = express();
const port = 9999; // 你可以选择任何你喜欢的端口号
const cors = require("cors");
app.use(cors());
// 定义一个简单的GET接口
app.get("/api/hello", (req, res) => {
  res.json({ message: "Hello from your local Express API!" });
});

// 启动服务器
app.listen(port, () => {
  console.log(`Server is running at http://localhost:${port}`);
});
